package org.jwcloud.project.module.zx.common;

import java.util.HashMap;

import org.jwcloud.project.module.zx.common.repository.RptCommonRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;



/**
 * mysql定时任务被干掉了，用java
 * @author song
 *
 */

@Component
@EnableScheduling
public class MysqlScheduled {

//	private static Logger logger = Logger.getLogger(MysqlScheduled.class);
	
	@Autowired
	public RptCommonRepository rptCommonRepository;
	
    @Scheduled(cron = "0 */30 * * * ?")
    public void runfirst(){
//        System.out.println("********cron job running******");
//        this.rptCommonRepository.doMatCronTip(new HashMap());
    }
}
